package com.Apo1o.controller;

import com.Apo1o.response.Result;
import com.Apo1o.service.IAnimalService;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Auther: Apo1o.
 * @Date: 2023/11/2-11-02-22:01
 * @Description： com.Apo1o.controller
 */
@RestController
@RequiredArgsConstructor
@RequestMapping("animal")
public class AnimalController {
    private final IAnimalService iAnimalService;
    @GetMapping
    public Result findAll(Integer pageNum,Integer pageSize,String aGender,String aHealthy){
        return Result.success(iAnimalService.findAll(pageNum,pageSize,aGender,aHealthy));
    }
}
